<?php
class OrderPayModel extends RelationModel {
	protected $tableName = 'order_pay';
	
	protected $_link = array(
			'member'=>array(
					'mapping_type'=>BELONGS_TO,
					'class_name'=>'member',
					'foreign_key'=>'user_id',
					'mapping_fields' => 'user_id,user_name, true_name, email, mobile, address',
			),
			'admin_user'=>array(
					'mapping_type'=> BELONGS_TO,
					'foreign_key'=>'oper_user',
					'mapping_fields' => 'true_name',
			),
	);
	
	public $status_arr = array(
			'0' => '未处理',
			'1' => '已确认',
	);
	
	public function get_status_arr(){
		return $this->status_arr;
	}
	
}

?>